<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateTippdestagesTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="tdtcrmessagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateTippdestagesLabel_author}" for="author" />
                    <h:inputText id="author" value="#{tippdestagesController.selected.author}" title="#{bundle.CreateTippdestagesTitle_author}" />
                    <h:outputLabel value="#{bundle.CreateTippdestagesLabel_tdtid}" for="tdtid" />
                    <h:inputText id="tdtid" value="#{tippdestagesController.selected.tdtid}" title="#{bundle.CreateTippdestagesTitle_tdtid}" required="true" requiredMessage="#{bundle.CreateTippdestagesRequiredMessage_tdtid}"/>
                    <h:outputLabel value="#{bundle.CreateTippdestagesLabel_tdtname}" for="tdtname" />
                    <h:inputText id="tdtname" value="#{tippdestagesController.selected.tdtname}" title="#{bundle.CreateTippdestagesTitle_tdtname}" required="true" requiredMessage="#{bundle.CreateTippdestagesRequiredMessage_tdtname}"/>
                    <h:outputLabel value="#{bundle.CreateTippdestagesLabel_tdtcontent}" for="tdtcontent" />
                    <h:inputTextarea rows="4" cols="30" id="tdtcontent" value="#{tippdestagesController.selected.tdtcontent}" title="#{bundle.CreateTippdestagesTitle_tdtcontent}" required="true" requiredMessage="#{bundle.CreateTippdestagesRequiredMessage_tdtcontent}"/>
                    <h:outputLabel value="#{bundle.CreateTippdestagesLabel_tdt}" for="tdt" />
                    <h:inputText id="tdt" value="#{tippdestagesController.selected.tdt}" title="#{bundle.CreateTippdestagesTitle_tdt}" required="true" requiredMessage="#{bundle.CreateTippdestagesRequiredMessage_tdt}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{tippdestagesController.create}" value="#{bundle.CreateTippdestagesSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{tippdestagesController.prepareList}" value="#{bundle.CreateTippdestagesShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateTippdestagesIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
